#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

DEB_BUILD_OPTIONS=noautodbgsym

%:
	dh $@ 

override_dh_auto_configure:
	mkdir -p ./build
	cd ./build; ../configure --prefix=/opt/ti-llvm-3.6 --enable-optimized --enable-targets="host,arm,c6000,msp430" --enable-jit

override_dh_auto_build:
	make -j4 -s -C ./build REQUIRES_RTTI=1

override_dh_auto_test:

override_dh_auto_install:
	make -s -C ./build install DESTDIR=$(CURDIR)/debian/ti-llvm-3.6

override_dh_auto_clean:
	rm -rf ./build
